#include "junix.h"
using namespace std;

int main(int argc, char **argv)
{
	std::stringstream fmt;
	long double d = 3.1415926;
	int i = 888;
	fmt<<3.1415926<<","<<i;
	std::cout<<fmt.str()<<std::endl;

	d=.0;
	i=0;
	std::string dummy;
	fmt>>d>>dummy>>i;
	std::cout<<d<<std::endl
		<<i<<std::endl;

	char buf[1024];
	sprintf(buf,"%#010.7f,%d",3.1415926,888);
	printf("%s\n",buf);
	sscanf(buf,"%#010.7f,%d",&d,&i);
	std::cout<<d<<std::endl
		<<i<<std::endl;
}
